package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-11-09  08:13
 */
public class Test {
    public static void main(String[] args) {
        double a= 123.1415926;
        System.out.printf("%f",a);
        System.out.println();
        System.out.printf("%.2f",a);
        System.out.println();
        System.out.printf("%-10f",a);
        System.out.println();
        System.out.printf("%2.7f",a);
        System.out.println();
        System.out.format("你好：%s","刘涛");
    }
}
